import React from "react";
import { Swiper, Toast } from "antd-mobile";
export default function movieBanner(props: any) {
  return (
    <div className="movieBanner">
      <div className="movieBanner_region">
        <Swiper autoplay loop>
          {props.list.map((item: any) => (
            <Swiper.Item key={item.id}>
              <div
                style={{ height: "150px" }}
                onClick={() => {
                  Toast.show(`你点击了编号 ${item.id}`);
                }}
              >
                <img
                  style={{ height: "100%", width: "100%" }}
                  src={"/api2" + item.advImg}
                  alt="描述"
                />
              </div>
            </Swiper.Item>
          ))}
        </Swiper>
      </div>
    </div>
  );
}
